home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F1544_KeyCompare.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  3KB  |  73 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>KeyCompare Action</title>
  6.         <meta name="generator" content="Adobe GoLive 4">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">KeyCompare Action</font>
  12.             <hr>
  13.         </center>
  14.         <csactionclass name="KeyPress" function="CSKeyCompare" nsversion="4" ieversion="4" actiontype="3">
  15.         <csactionparam name="charCode" type="GLActionNumParam"></csactionparam>
  16.         </csactionclass>
  17.         <p>IE Stuff
  18.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  19.         </p>
  20.         <p>KeyPress
  21.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  22. CSCurrentPressedKey = -1;
  23. function CSKeyPress(ev) {
  24.     var code;
  25.     if(IsIE()) CSCurrentPressedKey = event.keyCode;
  26.     else CSCurrentPressedKey = ev.which;
  27. }
  28. document.onkeypress    = CSKeyPress;
  29.  
  30. function CSKeyCompare(condition)
  31. {
  32.     var eq = (condition[1] == CSCurrentPressedKey);
  33.     if(eq)
  34.         CSCurrentPressedKey = -1;
  35.     return eq;
  36. }
  37. // -->
  38.         </script>
  39.         </p>
  40.  
  41.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  42.             <tr height="1" cntrlrow>
  43.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  44.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  45.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  46.                 <td width="140" height="1"><spacer type="block" width="140" height="1"></td>
  47.             </tr>
  48.             <tr height="6">
  49.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  50.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  51.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  52.                 <td width="140" height="6"><spacer type="block" width="140" height="6"></td>
  53.             </tr>
  54.             <tr height="3">
  55.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  56.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  57.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  58.                 <td width="140" height="146" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  59.                     <csactioncntrl name="charCode" x="80" y="6" width="44" height="17" alignx="left" aligny="top">
  60.                 </td>
  61.             </tr>
  62.             <tr height="143">
  63.                 <td width="1" height="143"><spacer type="block" width="1" height="143"></td>
  64.                 <td width="4" height="143"><spacer type="block" width="4" height="143"></td>
  65.                 <td width="76" height="143" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  66.                     <csactioncntrl type="InfoText" value="CharCode" x="4" y="9" width="55" height="16" alignx="left" aligny="top">
  67.                 </td>
  68.             </tr>
  69.         </table>
  70.     </body>
  71.  
  72. </html>
  73.